﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using PiscoSourPersistencia;
using PiscoSourDominio;

namespace PiscoSourSOAPServices
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "Locales" in code, svc and config file together.
    public class Locales : ILocales
    {
        private LocalDAO localDAO = null;
        private LocalDAO LocalDAO
        {
            get
            {
                if (localDAO == null)
                    localDAO = new LocalDAO();
                return localDAO;
            }
        }

        public string InsertarLocal(Local objLocal)
        {
            return localDAO.InsertarLocal(objLocal);
        }

        public string EliminarLocal(Local objLocal)
        {
            return localDAO.EliminarLocal(objLocal);
        }

        public string ActualizarLocal(Local objLocal)
        {
            return localDAO.ActualizarLocal(objLocal);
        }


    }
}
